package com.netty.rpc.server.factory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 服务工厂，模拟bean
 */
public abstract class ServiceFactory {
    protected Map<String,Object> cache=new ConcurrentHashMap<>();
    abstract public <T> T getBean(Class<T> clazz);
}
